﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000111 RID: 273
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class BattleRogueMagicRoundCount : IMessage<BattleRogueMagicRoundCount>, IMessage, IEquatable<BattleRogueMagicRoundCount>, IDeepCloneable<BattleRogueMagicRoundCount>, IBufferMessage
	{
		// Token: 0x170003A8 RID: 936
		// (get) Token: 0x06000C74 RID: 3188 RVA: 0x00024DE9 File Offset: 0x00022FE9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<BattleRogueMagicRoundCount> Parser
		{
			get
			{
				return BattleRogueMagicRoundCount._parser;
			}
		}

		// Token: 0x170003A9 RID: 937
		// (get) Token: 0x06000C75 RID: 3189 RVA: 0x00024DF0 File Offset: 0x00022FF0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return BattleRogueMagicRoundCountReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170003AA RID: 938
		// (get) Token: 0x06000C76 RID: 3190 RVA: 0x00024E02 File Offset: 0x00023002
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return BattleRogueMagicRoundCount.Descriptor;
			}
		}

		// Token: 0x06000C77 RID: 3191 RVA: 0x00024E09 File Offset: 0x00023009
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public BattleRogueMagicRoundCount()
		{
		}

		// Token: 0x06000C78 RID: 3192 RVA: 0x00024E11 File Offset: 0x00023011
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public BattleRogueMagicRoundCount(BattleRogueMagicRoundCount other) : this()
		{
			this.battleStandardRoundLimit_ = other.battleStandardRoundLimit_;
			this.battleExtraRoundLimit_ = other.battleExtraRoundLimit_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06000C79 RID: 3193 RVA: 0x00024E42 File Offset: 0x00023042
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public BattleRogueMagicRoundCount Clone()
		{
			return new BattleRogueMagicRoundCount(this);
		}

		// Token: 0x170003AB RID: 939
		// (get) Token: 0x06000C7A RID: 3194 RVA: 0x00024E4A File Offset: 0x0002304A
		// (set) Token: 0x06000C7B RID: 3195 RVA: 0x00024E52 File Offset: 0x00023052
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint BattleStandardRoundLimit
		{
			get
			{
				return this.battleStandardRoundLimit_;
			}
			set
			{
				this.battleStandardRoundLimit_ = value;
			}
		}

		// Token: 0x170003AC RID: 940
		// (get) Token: 0x06000C7C RID: 3196 RVA: 0x00024E5B File Offset: 0x0002305B
		// (set) Token: 0x06000C7D RID: 3197 RVA: 0x00024E63 File Offset: 0x00023063
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint BattleExtraRoundLimit
		{
			get
			{
				return this.battleExtraRoundLimit_;
			}
			set
			{
				this.battleExtraRoundLimit_ = value;
			}
		}

		// Token: 0x06000C7E RID: 3198 RVA: 0x00024E6C File Offset: 0x0002306C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as BattleRogueMagicRoundCount);
		}

		// Token: 0x06000C7F RID: 3199 RVA: 0x00024E7A File Offset: 0x0002307A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(BattleRogueMagicRoundCount other)
		{
			return other != null && (other == this || (this.BattleStandardRoundLimit == other.BattleStandardRoundLimit && this.BattleExtraRoundLimit == other.BattleExtraRoundLimit && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06000C80 RID: 3200 RVA: 0x00024EB8 File Offset: 0x000230B8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.BattleStandardRoundLimit != 0U)
			{
				num ^= this.BattleStandardRoundLimit.GetHashCode();
			}
			if (this.BattleExtraRoundLimit != 0U)
			{
				num ^= this.BattleExtraRoundLimit.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06000C81 RID: 3201 RVA: 0x00024F10 File Offset: 0x00023110
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06000C82 RID: 3202 RVA: 0x00024F18 File Offset: 0x00023118
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06000C83 RID: 3203 RVA: 0x00024F24 File Offset: 0x00023124
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.BattleStandardRoundLimit != 0U)
			{
				output.WriteRawTag(8);
				output.WriteUInt32(this.BattleStandardRoundLimit);
			}
			if (this.BattleExtraRoundLimit != 0U)
			{
				output.WriteRawTag(16);
				output.WriteUInt32(this.BattleExtraRoundLimit);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06000C84 RID: 3204 RVA: 0x00024F7C File Offset: 0x0002317C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.BattleStandardRoundLimit != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.BattleStandardRoundLimit);
			}
			if (this.BattleExtraRoundLimit != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.BattleExtraRoundLimit);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06000C85 RID: 3205 RVA: 0x00024FD4 File Offset: 0x000231D4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(BattleRogueMagicRoundCount other)
		{
			if (other == null)
			{
				return;
			}
			if (other.BattleStandardRoundLimit != 0U)
			{
				this.BattleStandardRoundLimit = other.BattleStandardRoundLimit;
			}
			if (other.BattleExtraRoundLimit != 0U)
			{
				this.BattleExtraRoundLimit = other.BattleExtraRoundLimit;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06000C86 RID: 3206 RVA: 0x00025024 File Offset: 0x00023224
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06000C87 RID: 3207 RVA: 0x00025030 File Offset: 0x00023230
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 8U)
				{
					if (num != 16U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.BattleExtraRoundLimit = input.ReadUInt32();
					}
				}
				else
				{
					this.BattleStandardRoundLimit = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04000523 RID: 1315
		private static readonly MessageParser<BattleRogueMagicRoundCount> _parser = new MessageParser<BattleRogueMagicRoundCount>(() => new BattleRogueMagicRoundCount());

		// Token: 0x04000524 RID: 1316
		private UnknownFieldSet _unknownFields;

		// Token: 0x04000525 RID: 1317
		public const int BattleStandardRoundLimitFieldNumber = 1;

		// Token: 0x04000526 RID: 1318
		private uint battleStandardRoundLimit_;

		// Token: 0x04000527 RID: 1319
		public const int BattleExtraRoundLimitFieldNumber = 2;

		// Token: 0x04000528 RID: 1320
		private uint battleExtraRoundLimit_;
	}
}
